package base.service.impl;

import base.bean.CheckinEntity;
import base.dao.ICheckinDao;
import base.service.ICheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by uas on 2018/3/19.
 */
@Service
@Transactional
public class ICheckinServiceImpl implements ICheckService{
    @Autowired
    ICheckinDao iCheckinDao;
    @Override
    public void save(CheckinEntity checkIn) {
        CheckinEntity saveCheckin=new CheckinEntity();
        iCheckinDao.save(checkIn);
    }

    @Override
    public List<CheckinEntity> findAll() {
          return  iCheckinDao.findAll();
    }

    @Override
    public List<CheckinEntity> findExceptCheckOut() {
        return iCheckinDao.findExceptCheckOut();
    }
}
